package cn.itsource.configration;

import cn.itsource.config.TXCosConfig;
import cn.itsource.service.TXCosTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties({TXCosConfig.class})
public class TXCosConfiguration {
    @Bean
    public TXCosTemplate getTXCosTemplate(TXCosConfig txCosConfig) {
        return new TXCosTemplate(txCosConfig);
    }
}